package com.ry.est.service;

import com.ry.est.dto.PayOrderDTO;

/**
 * @author ry
 * @since 2021-11-16 10:11
 **/
public interface PayOrderService {
    int savePayOrder(PayOrderDTO payOrderDTO);

    PayOrderDTO getByPayNo(String payNo);

    /**
     * 根据订单id更新支付状态
     * @param id
     * @param tradeNo
     */
    int updateOrderStatusToSuccess(Long id, String tradeNo);
}
